<?
/** 
 * pasteboard-tiny 
 * a tiny content management framework
 * This is the PHP page the serves all page requests.
 *
 * @package    pasteboard
 * @subpackage core
 * @author     pasteboard team <pbt_team@pasteboard.org>
 * @copyright  Copyright (c) 2011, pasteboard group
 * @license    GNU General Public License, http://pasteboard.org/?p=license
 
 	Copyright (C) 2011  James McCarthy, http://sjamesmccarthy.com

    This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */
 

/* Database connection information */
$host = explode('.', $_SERVER['HTTP_HOST']);
switch ($host[0])
{
	case in_array('local', $host):
	/* Site Database Information */
	$this->DB_NAME = NULL;
	$this->DB_HOST = NULL;
	$this->DB_USER = NULL;
	$this->DB_PSWD = NULL;
	$this->SITE_URL = 'http://' . $_SERVER['HTTP_HOST'] . '/';
	break;
	
	default:
	/* Site Database Information */
	$this->DB_NAME = NULL;
	$this->DB_HOST = NULL;
	$this->DB_USER = NULL;
	$this->DB_PSWD = NULL;
	$this->SITE_URL = 'http://' . $_SERVER['HTTP_HOST'] . '/';
	break;
}


/* End of file */
/* Location: ./config_db.php */